<!DOCTYPE html>
<!-- Created by 白墨 on 2021/4/17 22:35:10-->
<html lang="zh-cmn-Hans-CN"  xmlns:th="http://www.thymeleaf.org">

<head th:replace="_fragments ::head(~{::title})">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>归档</title>

</head>

<body>
<!-- 导航 -->
<nav th:replace="_fragments::menu(4)" class="ui inverted attached segment m-shadow-small">
</nav>

<!--中间内容-->
<div class="m-container-small m-padded-tb-big">
  <div class="ui container animated fadeInUp">
    <!--header-->
    <div class="ui top attached padded segment tm">
      <div class="ui middle aligned two column grid">
        <div class="column">
          <h3 class="ui blue header">归档</h3>
        </div>
        <div class="right aligned column">
          共 <h2 class="ui orange header m-inline-block m-text-thin" th:text="${blogCount}"> 114 </h2> 篇博客
        </div>
      </div>
    </div>

    <th:block th:each="item : ${archiveMap}">
      <h3 class="ui center aligned header" th:text="${item.key}">年份</h3>
      <div class="ui fluid vertical menu tm">
        <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="item" th:each="blog : ${item.value}">
                  <span>
                    <i class="mini circle icon" th:classappend="${blog.flag == '原创'?'orange':(blog.flag == '转载'?'green':'red') }"></i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span th:text="${blog.title}">博客标题</span>
                    <div class="ui basic left pointing label m-padded-mini " th:classappend="${blog.flag == '原创'?'orange':(blog.flag == '转载'?'green':'red') }" th:text="${#dates.format(blog.createTime,'MMMdd')}">日期</div>
                  </span>
          <div class="ui basic left pointing label m-padded-mini " th:classappend="${blog.flag == '原创'?'orange':(blog.flag == '转载'?'green':'red') }" th:text="${blog.flag}">原创标签</div>
        </a>
      </div>
    </th:block>
  </div>
</div>



<br>
<br>

<!-- 底部 -->
<footer th:replace="_fragments::footer" class="ui inverted vertical segment m-padded-tb-massive">
</footer>


<script src="https://lib.baomitu.com/jquery/3.5.1/jquery.js"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
<script src="../static/js/APlayer.min.js" th:src="@{/js/APlayer.min.js}"></script>
<script src="../static/js/music.js" th:src="@{/js/music.js}"></script>
<!--    雪花特效-->
<script src="../static/js/snow.js" th:src="@{/js/snow.js}"></script>
<!--板娘 -->
<script src="https://eqcn.ajz.miesnfu.com/wp-content/plugins/wp-3d-pony/live2dw/lib/L2Dwidget.min.js"></script>

<script>
  L2Dwidget.init({
    "model": {
      jsonPath: "https://unpkg.com/live2d-widget-model-shizuku@1.0.5/assets/shizuku.model.json",
      "scale": 1
    },
    "display": {
      "position": "right",
      "width": 100,
      "height": 200,
      "hOffset": 0,
      "vOffset": -20
    },
    "mobile": {
      "show": true,
      "scale": 0.5
    },
    "react": {
      "opacityDefault": 1,
      "opacityOnHover": 0.2
    }
  });
</script>
<script>
  $('.menu.toggle').click(function () {
    $('.m-item').toggleClass('m-mobile-hide');
  });
  $('#newblog-container').load("[[@{/footer/newblog}]]");
</script>
</body>

</html>